@import 'element-variables.2.11.scss';
@import 'custom-variables.1.7.scss';

@font-face {
  font-family: fzk;
  src: url('./devFonts/fangzhengkai.ttf')
}

@font-face {
  font-family: fzxbst;
  src: url('./devFonts/fangzhengxiaobiaoshong.ttf')
}

@font-face {
  font-family: hkhw9;
  src: url('./devFonts/huakangheiW9.ttf')
}

@font-face {
  font-family: fzzy;
  src: url('./devFonts/fangzhengzhunyuan.ttf')
}

@font-face {
  font-family: hwxk;
  src: url('./devFonts/huanwenxingkai.ttf')
}

@font-face {
  font-family: fzhc;
  src: url('./devFonts/fangzhenghuangcao.ttf')
}

@font-face {
  font-family: mijcy;
  src: url('./devFonts/minijianchaiyun.ttf')
}

/* Layout
-------------------------- */
/*
    html
    body
    app
*/
html,
body,
#app {
  height: $--argument-full-pre;
  margin: 0;
  padding: 0;
}

.full-pre {
  height: $--argument-full-pre;
  overflow: hidden;
  background: $--color-grayish-1;
}

.full-pre-width {
  width: $--argument-full-pre;
}

// head -->
/*
    logo
    header
    title
    global
*/
.header {
  background-color:$--color-white;
  color: $--color-template-button-text-primary;
  border-bottom: 1px solid $--border-color-base;
  height: 100%;
  text-align: left;
  line-height: 60px;
  font-size: 20px;
  font-weight: bold;
}

.sub-title {
  margin: 0;
  padding: 0;
  padding-left: 34px;
  font-size: 20px;
  color: #393534;
  font-weight: 700;
}

.left-menu {
  position: relative;
}

.global-menu {
  display: flex;
  position: absolute;
  right: 10px;
  top: 0;
  list-style: none;
  margin: 0;
  padding: 0;

  a {
    text-decoration: none;
    color: $--color-primary;

    &:hover {
      color: $--color-primary;
      text-decoration: none;
    }
  }
}


// container -->
/*
    tabs
    contents
*/
.layout-tabs {
  &.el-tabs {
    background-color: $--layout-tabs-bg;
    .el-tabs__nav-wrap {
      margin-bottom:0;
    }
    .el-tabs__header.is-top {
      margin: 0;
      border-bottom: 0;
      border-top: 1px solid $--layout-tabs-border-color;
      box-shadow: 0px 0px 5px $--layout-tabs-shadow;

      .el-tabs__nav {
        border: 0
      }
    }

    .el-tabs__item {
      border: 0;
      background-color: $--layout-tabs-bg;
      height: 40px;
      line-height: 40px;
      color: $--layout-tabs-text-color;
    }

    .el-tabs__nav-next,
    .el-tabs__nav-prev {
      line-height: 40px;
    }

    .el-tabs__item {
      &.is-active {
        background-color: $--layout-tabs-active-bg;
        color: $--layout-tabs-active-text-color;
      }

      &.is-closable {
        &:hover {
          padding-left: 20px;
          padding-right: 20px;
        }
      }
    }

    .el-tabs__header {
      .el-tabs__item .el-icon-close {
        color: $--layout-tabs-text-color;
        width: 14px;
      }

      .el-tabs__item.is-active .el-icon-close {
        color: $--layout-tabs-active-text-color;
      }
    }
  }
}

.contents {

  // padding: 20px;
  >div {
    padding: 20px;
    background-color: #f1f2f7;
    box-shadow: 0px 4px 3px $--layout-tabs-shadow inset;

  }

  // .el-scrollbar__view {
  //   padding-bottom: 100px;
  // }

}

// aside -->
/*
    aside
    logo
    menu
    expand
*/
// aside
.el-aside {
  background-color:$--color-blue-deep-1;
}

// logo
.logo {
  height: 60px;
  background-color: #181824;
  //background-image: url('../../../assets/logo.png');
  background-position: 12px 15px;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  text-indent: -666px;
}

// menu
.el-menu-vertical-demo {
  background: $--color-blue-deep-1;
  border-right: 0;
  box-shadow: 0 6px 10px #171b34 inset;

  .el-menu-item,
  .el-submenu__title {
    color: $--color-white;

    i {
      color: #485899;
    }
  }

  .el-submenu{
    .el-menu-item{
      line-height: 38px;
      height: 40px;
    }
  }
  .el-menu-item {
    background-color: transparent;
  }

  .el-menu-item:hover,
  .el-menu-item:focus,
  .el-submenu__title:hover,
  .el-submenu__title:focus {
    background-color: $--color-primary;
    color: $--color-white;
    // box-shadow: -4px 0 0 $--color-blue inset;

    i {
      color: $--color-white;
    }
  }

  .is-active {
    color: $--color-warning;

    .el-menu {
      background-color: $--argument-transparent;
    }
  }
}
//二级菜单颜色
.el-menu--vertical{
  background: $--color-blue-deep-1;
  .el-menu--popup{
    box-shadow: none;
  }
  .el-menu{
    background: transparent;
    .el-menu-item{
      color: $--color-white;
      height: 40px;
      line-height: 38px;
      &:focus,&:hover{
        background-color: $--color-primary
      }
    }
  }
}
.el-menu.el-menu--inline {
  background-color:$--color-blue-deep-1;

  .el-menu-item {
    background-color: $--argument-transparent;
    font-size: 12px;
    padding-left: 54px !important;
  }

  .el-menu-item:hover,
  .el-menu-item:focus {
    background-color: $--color-primary;

    i {
      color: $--color-white;
    }
  }
}

.el-menu-vertical-demo {
  margin: 0;
}

.el-menu--collapse>.el-menu-item span,
.el-menu--collapse>.el-submenu>.el-submenu__title span {
  width: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  display: inline-block;
}

.el-menu-vertical-demo.el-menu--collapse {
  width: 50px;

  .el-menu-item,
  .el-submenu__title {
    padding-left: 12px !important;
  }
}

.el-menu-vertical-demo:not(.el-menu--collapse) {
  width: 240px;
  min-height: 400px;
}

// expand
.expand-menu-control {
  position: absolute;
  right:0;
  top: 10px;
  padding: 2px 0;
  // background-color: rgba(255, 255, 255, .05);
  // text-align: center;

  i{
    font-size: 22px;
  }
  &:hover {
    // background-color: rgba(255, 255, 255, .1);

    i {
      color: $--color-primary !important;
    }
  }

  .el-radio-button {
    width: 100%;
  }

  .el-radio-button:first-child .el-radio-button__inner,
  .el-radio-button:last-child .el-radio-button__inner {
    border: 0;
    border-radius: 0;
  }

  .el-radio-button__inner {
    width: 100%;
    background-color: transparent;
    padding: 10px 16px;
    i {
      color: #818aa7;
    }
  }

  .el-radio-button__orig-radio:checked+.el-radio-button__inner {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
}



/* no framework */
.new-edit-page {
  padding: 46px 0 62px 0;

  .template-table-list-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
    padding-top: 0 !important;
    height: 46px;
    border-bottom: 1px solid #E3E4E5;
    background: #f9f9f9;

    h2,
    h3 {
      padding: 0 0 0 20px;
      margin: 0 10px 0 0;
      line-height: 46px;
      font-weight: normal;
      font-size: 1.2rem;
    }

    h2 {
      float: left;
    }

    .el-steps--horizontal {
      margin: -34px auto 0 auto;
      width: 50%;

      .el-step__main {
        position: absolute;
        left: 24px;
        top: -7px;
        width: 80px;
        text-align: center;
        background: #f9f9f9;

        .el-step__title.is-process {
          color: $--color-primary;
        }
      }

      .is-process {
        .el-step__icon {
          background: $--color-primary;
          color: $--color-white;
          border-color: $--color-primary;
        }
      }

      .is-wait {
        .el-step__icon {
          background: $--color-white;
          color: $--color-primary;
          border-color: $--color-primary;
        }
      }
    }
  }

  .bottomFormBtn {
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    left: 0;
    height: 48px;
    padding-top: 8px;
    margin-bottom: 0 !important;
    width: 100%;
    text-align: center;
    background: #f9f9f9;
    border-top: 1px solid #E3E4E5;

    .el-form-item__content {
      margin-left: 0 !important;
      width: 100%;
    }
  }

  .template-table-list-body {
    padding: 0;
    margin: 0;
  }

}

// srcollbar
.flow-x-scrollbar {
  .el-scrollbar__wrap {
    overflow-x: hidden;
  }

  .el-scrollbar__bar.is-vertical {
    z-index: 99;
  }
}

// ie9 hack
.el-container {
  display: block\9\0;
}

.el-container.is-vertical,
.el-aside {
  display: inline-block\9\0;
  float: left;
}

.el-container.is-vertical {
  width: calc(100% - 240px)\9\0
}
